import axios from 'poros/http';

// const BASE_API = 'http://10.110.100.171:8030';
const BASE_API = '';

//供需应用别表
export const getTableSupplyDemandSkill = id =>
  axios({
    url: `${BASE_API}/api/salesforecast-service/statementAnalysis/supplyDemand/applicationDimension/${id}`,
    method: 'get',
  });

//供需客户表
export const getTableSupplyDemandCustomer = id =>
  axios({
    url: `${BASE_API}/api/salesforecast-service/statementAnalysis/supplyDemand/customerDimension/${id}`,
    method: 'get',
  });

//BP总览表
export const getTableBP = id =>
  axios({
    url: `${BASE_API}/api/salesforecast-service/statementAnalysis/bpOverview/${id}`,
    method: 'get',
  });

//M3总览表
export const getTableM3 = params =>
  axios({
    url: `${BASE_API}/api/salesforecast-service/statementAnalysis/m3Overview/`,
    method: 'get',
    params,
  });

//需求变化应用别表
export const getTableDemandChangeSkill = id =>
  axios({
    url: `${BASE_API}/api/salesforecast-service/statementAnalysis/demandChange/applicationDimension/${id}`,
    method: 'get',
  });

//需求客户别表
export const getTableDemandChangeCustomer = id =>
  axios({
    url: `${BASE_API}/api/salesforecast-service/statementAnalysis/demandChange/customerDimension/${id}`,
    method: 'get',
  });

//供应变化应用别表
export const getTablesupplyChangeSkill = id =>
  axios({
    url: `${BASE_API}/api/salesforecast-service/statementAnalysis/supplyChange/applicationDimension/${id}`,
    method: 'get',
  });

//供应客户别表
export const getTablesupplyChangeCustomer = id =>
  axios({
    url: `${BASE_API}/api/salesforecast-service/statementAnalysis/supplyChange/customerDimension/${id}`,
    method: 'get',
  });
